MavlinkFiles

Utility class that provides methods to generate a MAVLink file from a list of MAVLink commands, and conversely, parse a MAVLink file.

A MAVLink file contains a list of commands in a plain-text format, which form a mission script. Note that supported MAVLink commands differ from official MAVLink common message set. For further information about supported MAVLink commands, please refer to Parrot FlightPlan MAVLink documentation.

Functions

Link copied to clipboard
open fun generate(@NonNull file: File, @NonNull commands: Iterable<MavlinkCommand>)
Generates a MAVLink file from the given list of legacy commands.
Link copied to clipboard
Parses a MAVLink file into a list of legacy commands.